package cn.itlaobing.service;

import cn.itlaobing.dao.VTypeDao;
import cn.itlaobing.exception.MyException;
import cn.itlaobing.model.VegetableTypesModel;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by Administrator on 2017-11-10.
 */
public class VTypeService {
    private VTypeDao vd=new VTypeDao();
    public List<VegetableTypesModel> QueryAll() throws MyException {
        try {
            return vd.QueryAll();
        } catch (SQLException e) {
            e.printStackTrace();
            throw new MyException(e.getMessage());
        }

    }
}
